import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import './assets/styles/elementTheme/theme/index.css'
import 'umy-ui/lib/theme-chalk/index.css'
import directive from './directive' // directive

import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts // echarts theme

import website from './plugins/config/website'
Vue.prototype.$website = website

import Bus from './bus'
Vue.use(Bus)

import './assets/styles/index.less'
import '@/assets/iconfont/iconfont.css';
import './utils/svg'
import './comp'
import './permission'
import Mixin from './mixins'

// 以下为bpmn工作流绘图工具的样式
// bpmnProcessDesigner 需要引入
import MyPD from "@/components/bpmnProcessDesigner/package/index.js";
Vue.use(MyPD);
import "@/components/bpmnProcessDesigner/package/theme/index.scss";
import "bpmn-js/dist/assets/diagram-js.css";
import "bpmn-js/dist/assets/bpmn-font/css/bpmn.css";
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";

Vue.config.productionTip = false;

Vue.mixin(Mixin)
Vue.use(ElementUI);
Vue.use(directive);

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
